﻿@{
    //在线留言列表页
    int page = ViewBag.PageIndex;
    string kw = ViewBag.Keyword;
    int i = 0;
}

@model OnlineMessages
<div class="content-box">
    <div class="content-box-header">
        <h3 style="cursor: s-resize;">在线留言管理</h3>
        <ul class="content-box-tabs">
            <li><a href="javascript:;" class="default-tab current" id="List">列表</a></li>
        </ul>
        <div class="clear"></div>
    </div>
    <div class="content-box-content">
        <div class="tab-content default-tab" id="tab1">
            <div class="">
                <form action="@Url.DomainRouteUrl(AreasConfig.Admin, "Index", "OnlineMessage")">
                    <select name="" class="">
                        <option value="1">--条件1--</option>
                        <option value="2">Option 2</option>
                        <option value="3">Option 3</option>
                        <option value="4">Option 4</option>
                    </select>
                    <input type="text" name="kw" value="" class="text-input" placeholder="按...搜索" />
                    <button type="submit" value="">搜索</button>
                </form>
            </div>
            <table>
                <thead>
                    <tr>
                        <th>
                            <input class="check-all" type="checkbox">
                        </th>
                        <th>用户名</th>
                        <th>类型</th>
                        <th>内容</th>
                        <th>留言时间</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (var item in Model.Items)
                    {
                        i++;
                        <tr class="@(i % 2 == 0 ? "" : "alt-row")">
                            <td>
                                <input type="checkbox">
                            </td>
                            <td>@item.UserId</td>
                            <td>@item.MessageTypeId</td>
                            <td>@item.MessageInfo</td>
                            <td>@item.AddTime</td>
                            <td> @Html.ActionLink("修改", "Edit", new { id = item.OnlineMessageId, md = "update", page = page, kw = kw })
                                &nbsp;&nbsp;&nbsp;&nbsp;
                                @Html.ActionLink("删除", "Delete", new { id = item.OnlineMessageId, page = page, kw = kw }, new { onclick = "return confirm('确定要删除吗？');" })
                            </td>
                        </tr>
                    }
                </tbody>
            </table>
        </div>
    </div>
</div>

